//////////////////////////////////////
//                                  //
//           custom.js              // 
//                                  //
//////////////////////////////////////

// Note: Developers will need to change these two variables to reflect
//       the actual section and topic that this SCO represents.  When
//       this Lesson loads, navigation will start at 
//       section SCO_SECTION, topic SCO_TOPIC.
var SCO_SECTION = 1;
var SCO_TOPIC = 1;

/////////////////////////////////////////
// This file contains custom toolbar   //
// functions and variable declarations //
// which are not in all versions of    //
// the toolbar.                        //
///////////////////////////////////////// 
var beenAudio = false;

var exerciseFlagArray = new Array();
for (var d=0; d<7; d++){
	exerciseFlagArray[d] = false;
}
var allRight = false;


var courseTitle = "3-1 Prepare an Operation Overlay";
var alternateCourseTitle = courseTitle;
var disabledLinkColor = "#B1AB9F";

var ex1t1p3VidFlag = false;
var ex1t1p2Array = new Array();
for (var t=0; t<6; t++){
	ex1t1p2Array[t] = new Array();
	for (var r=0; r<2; r++){
		ex1t1p2Array[t][r] = null;
	}
}

var ctt1t1p2ExerciseArray = new Array();
for (var e=0; e<8; e++){
	ctt1t1p2ExerciseArray[e] = new Array();
	ctt1t1p2ExerciseArray[e][0] = "XXXXX";
	ctt1t1p2ExerciseArray[e][1] = false;
}
ctt1t1p2ExerciseArray[8] = new Array();
ctt1t1p2ExerciseArray[8][0] = "";
ctt1t1p2ExerciseArray[8][1] = false;

var ctt1t1p3ExerciseArray = new Array();
for (var e=0; e<8; e++){
	ctt1t1p3ExerciseArray[e] = new Array();
	ctt1t1p3ExerciseArray[e][0] = "XXXXX";
	ctt1t1p3ExerciseArray[e][1] = false;
}
ctt1t1p3ExerciseArray[8] = new Array();
ctt1t1p3ExerciseArray[8][0] = "";
ctt1t1p3ExerciseArray[8][1] = false;

// Declare some constants for array
// initializations.
var MAX_SECTIONS= 1
var MAX_TOPICS=1
var MAX_SUBTOPICS=6
	

function disableRefreshButton()
{
	disableRefresh = true;
	theRefreshButton.src=imageArray[REFRESH_IMG + 3].src;
}
	
function enableRefreshButton()
{
	disableRefresh = false;
	theRefreshButton.src=imageArray[REFRESH_IMG].src;
}
function showStatus()
{
	alert(getStatus());
	theStatusButton.src=imageArray[STATUS_IMG].src;
}
	
function updateToolbarStatus()
{
}
	
function clearToolbarStatus()
{
}

function alertLocked(sec, top, subtop, pag)
{
	//if (sec == 2 && top == 1 && pag == null)
	//{
	//	alert("You cannot enter the pretest once you have viewed the instructional material.");
	//}
	//else
	//{
		alert("You cannot enter this area of the lesson because it is currently locked.");
	//}
}

